package com.xiaotao.util;

import lombok.Getter;

@Getter
public enum ResponseEnum {
    OK(200, "操作成功"),
    USER_6(1006, "账号失效"),
    VERIFY(200, "验证码已发送，1分钟后过期"),
    NO1(400,"操作者id为空"),
    NO2(400,"目标id为空，或房间id为空"),
    NO3(400,"不能给自己发私聊"),
    NO4(400,"房间已满"),
    FAIL(400, "操作失败");

    private Integer code;
    private String msg;

    ResponseEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
